home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
iscolor.zip
/
ISCOLOR.DOC
< prev
next >
Wrap
Text File
|
1992-06-28
|
2KB
|
48 lines
ISCOLOR (c) 1992 Karl Schneider
8505 Woodwick Ct.
Tampa, FL 33615
Voice: 813-884-9661 DAYS & EVENINGS
BBS: " " " MIDNIGHT to 0800 EST only!
14.4 HST
ISCOLOR is a little quickie program to use with WILDCAT (may work
with other BBS software which creates a DOOR.SYS file for Doors)
that checks to see if the current caller is using Color or Mono
mode. It could be used as the first line in any DOORx.BAT file
(or any of the 'hooks') to make sure the caller is using Color
(graphics) before permitting entry into the game or whatever the
activity is.
It simply exits with ERRORLEVEL 1 if the caller is in MONOCHROME
and ERRORLEVEL 0 if in COLOR (Graphics).
Example: SOMEGAME ( in a Door) requires Color (ANSI)....so here's
a way to use ISCOLOR in DOORx.BAT
iscolor
if errorlevel 1 goto nope
SOMEGAME SOMEGAME.CFG
goto end
:nope
outfile c:\wc30\stuff\nocolor.asc
:end
If the user doesn't have color enabled, ISCOLOR exits with errorlevel
1 and branches to :nope where my 'OUTFILE' program sends the file
c:\wc30\stuff\nocolor.asc to the user and exits. This is, of course,
optional...you can just omit this if you like. I have included a
streamlined version of OUTFILE in this archive for use as you like.
If you choose to use it, fix the file pathname to reflect the file's
name and location.
Thanks to Marvin Blackburn at DataBoard BBS in Crowley, TX for sug-
gesting this program. Marvin has also helped me with beta testing
on other WC utilities.
If ISCOLOR is useful, I would appreciate a nominal contribution. Any-
one contributing $35 or more will be considered fully registered for
ALL my WC 3.x utilities. Thanks.
-ks-